import { Button } from 'antd'
import React from 'react'
import { useNavigate } from 'react-router-dom'

function Index() {
  const navigate = useNavigate()
  const handleToOrder = ()=>{
    navigate('/order')
  }
  return (
    <div>
      <Button onClick={()=>handleToOrder()}>去我的订单</Button>
    </div>
  )
}

export default Index
